<div id="historyOrder" class="dish">

    <div id=dishDiv class="table-si">
        <div class="form-group">
            <div class="col-sm-12">
                <input type="text" class="form-control search" id="inputPassword" ng-model="searchOrders"
                       placeholder="请输入搜索字段">
            </div>
        </div>
        <table class="table table-hover" ng-repeat="o in orders |filter:searchOrders | orderBy : 'orderTime'">

            <thead>
            <tr>
                <th colspan="2">下单时间：{{o.orderTime | date : 'yyyy-MM-dd hh:mm:ss EEEE'}}</th>
                <th>购买者：{{o.user.account}}</th>
                <th>状态：{{o.taken}}</th>
                <th>总价：￥{{o.total}}</th>

            </tr>

            </thead>
            <tbody>
            <tr ng-repeat="d in o.dishes ">
                <td><img src="{{d.dicon}}" class="dish_img"></td>
                <td>{{d.dname}}</td>
                <td>￥{{d.price}}</td>
                <td>{{d.num}}份</td>
                <td>￥{{d.num*d.price}}</td>
            </tr>
            <tr ng-if="o.comments">
                <td colspan="4">{{o.comments}}</td>
                <td>
                    <button class="btn btn-success " ng-click="processComments($index)" id="{{o._id}}">投诉状态</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

</div>